<include file="Public/header" />
    <title>认证</title>
    <link rel="stylesheet" href="__PUBLIC__/Api/assets/css/reset.css">
    <script src="__PUBLIC__/Api/assets/js/rem.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Api/assets/css/certificat.css">
    <link rel="stylesheet" href="__PUBLIC__/Api/assets/css/font-awesome.min.css">
    <link rel="stylesheet" href="__PUBLIC__/Api/assets/css/weui.min.css">
    <style>
    body{
        
        line-height: 0.4;
    }
        .weui-tabbar {
            position: fixed;
            bottom: 0;
        }

        .weui-bar__item--on .weui-tabbar__icon i {
            color: #E73E72;
        }

        .weui-tabbar__lab {
            text-align: center;
            color: #999;
            font-size: 10px;
            line-height: 1.8;
        }

        .bel {
            color: #E73E72 !important;
        }
    </style>
</head>

<body>
    <div class="cer-content">
        <div class="cer-header">认证</div>
        <div class="cer-main">
            <a class="tz" href="{:U('Index/personalr')}">
                <div class="cer-logo"><i class="fa fa-user"></i></div>
                <!-- <p class="gq-red">个人认证</p> -->
                <p <?php if(!empty($sfrz['sfz_f'])){echo "style='color: #fe4f86;'";}?>>个人认证</p>
            </a>
            <a class="tz" href="{:U('Index/relation')}">
                <div class="cer-logo"><i class="fa fa-user-plus"></i></div>
                <!-- <p class="gq-red">关系认证</p> -->
                <p <?php if(!empty($gxrz)){echo "style='color: #fe4f86;'";}?>>关系认证</p>
            </a>
            <a class="tz" href="{:U('Index/borrow')}">
                <div class="cer-logo"><i class="fa fa-mobile"></i></div>
                <!-- <p class="gq-red">借款认证</p> -->
                <p <?php if(!empty($jdrz) && !empty($fx)){echo "style='color: #fe4f86;'";}?>>借款认证</p>
            </a>
        </div>
        <?php if($sfrz['start']==2){?>
            <div class="cer-submit"  style='background: #fe4f86;'>
                等待批款中...
            </div>
        <?php }else if($sfrz['start']=='1'){?>
            <div class="cer-submit" onclick="rz()">
                请认证
            </div>
        <?php }else if($sfrz['start']=='4'){?>
            <div class="cer-submit" onclick='qjd()' style='background: #fe4f86;'>
                已认证去借贷
            </div>
        <?php }?>
    <input type="hidden" id="tz_zt" value="<?php echo $sfrz['start'];?>">
    </div>

    <include file="Public/bottom" />
    <script>
        function qjd() {
            location.href="<?php echo U('Index/index')?>";
        }
        function rz(){
            var grrz="<?php echo $sfrz['sfz_f']?>";
            var gxrz="<?php echo $gxrz['id']?>";
            var jdrz="<?php echo $jdrz['id']?>";
            var fx="<?php echo $fx['id']?>";
            if(!grrz){
                location.href="{:U('Index/personalr')}";
                return false;
            }
            if(!gxrz){
                location.href="{:U('Index/relation')}";
                return false;
            }
            if(!jdrz){
                location.href="{:U('Index/borrow')}";
                return false;
            }
            if(!fx){
                location.href="{:U('Index/borrow')}";
                return false;
            }
        }
        $(function(){
            $('.tz').click(function(){
                if($('#tz_zt').val()==4){
                    layer.msg('已经认证');
                    return false;
                }
            })
        })
    </script>
</body>
</html>
